<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <input type="submit" value="按钮" @click="visblebaba=1">
    <didi :visble.sync="visblebaba" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import didi from './didi.vue'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  // eslint-disable-next-line vue/order-in-components
  components: {
    didi
  },
  // eslint-disable-next-line vue/order-in-components
  data() {
    return {
      visblebaba: 0
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
